package com.wang.service.extension.impl;

import com.wang.service.extension.FooService;
import org.apache.dubbo.common.URL;

public class FooServiceWrapper implements FooService {

    private FooService fooService;

    public FooServiceWrapper(){}
    public FooServiceWrapper(FooService fooService){
        this.fooService = fooService;
    }

    @Override
    public String getMsg(URL url) {
        System.out.println("fooService before --------------");
        String msg = fooService.getMsg(url);
        System.out.println("fooService after --------------");
        return msg;
    }
}
